package com.fc.advbox.entity;

import com.fc.advbox.utils.validator.group.AddGroup;
import com.fc.advbox.utils.validator.group.UpdateGroup;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Created by E7450 on 2018/6/21.
 */
@Getter
@Setter
public class EquipmentAttrEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    @NotBlank(message="所属设备不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Long equipmentId;
    private String attrGroup;
    @NotBlank(message="属性名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String attrName;
    private String attrValue;

}
